package com.xiami.mapper;

import com.xiami.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
创建者:虾米糖
*/
@Mapper
public interface EmpMapper {

    @Select("select * from emp")
    public List<Emp> list();
@Select("select * from emp where username = #{username} and password = #{password}")
    Emp getByUserNameAndPassword(Emp emp);
}
